Math olympiad Question